 <div id="content">
    	<div class="history-title clerafix">
            <div class="date-box">
              <form action="" id="teamHistory_ids" method="post">
            	<select name="reviewYear" id="reviewYear" >
            	    <?php $def_year = empty($params['year']) ? date('Y') : $params['year'];?>
                    <?php for ($i=2012;$i<2100;$i++):?>
                    <?php if($i>date('Y')){ break;}?>
                      <option value="<?=$i?>" <?php if($def_year==$i):?>selected="selected"<?php endif;?> ><?=$i?>年</option>
                    <?php endfor;?>
                </select>

    <select name="reviewMonth" id="reviewMonth" onchange="submitQuery('m')">
    <?php if(!empty($year_kp)):?>
    <?php foreach($year_kp as $val):?>
    <option value="<?=substr($val,4)?>" <?php if($params['month']==substr($val,4)):?>selected="selected"<?php endif;?>><?=intval(substr($val,4,2))?>-<?=intval(substr($val,6))?>月</option>
    <?php endforeach;?>
    <?php endif;?>
</select>


                </form>
            </div>
    		<h2>团队绩效和计划</h2>
        </div>
        <table class="table01" width="490" border="1" cellpadding="0" cellspacing="0" rules="rows">
            <thead>
                <tr>
                    <td width="125">姓名</td>
                    <td width="68">最终得分</td>
                    <td width="182">操作</td>
                </tr>
            </thead>
            <tbody>
            <?php if(!empty($sublist)):?>
            <?php foreach($sublist as $val):?>
                  <tr>
                    <td width="175"><?=$val['name']?></td>
                    <td><span class="score-f14"><?=empty($val['score']['adjustScore']) ? $val['score']['personScore']: $val['score']['adjustScore']?></span></td>
                    <td>
                    <a href="<?=Util_JxUrls::plan_url('view',array('user_id'=>$val['user_id'],'searchDate'=>$ckdate))?>" class="blue">绩效详情</a>
                    <a href="<?=Util_JxUrls::team_url('ShowUserScore',array('user_id'=>$val['user_id']))?>" target="_blank" class="blue">历史得分</a>
                    </td>
                  </tr>
            <?php endforeach;?>
            <?php endif;?>
            </tbody>
        </table>
    </div>

 <?php $this->script_block_begin(); ?>
    <script type="text/javascript">
    $(function(){
    	  $('#team_1').addClass("tab-on");
      });
    $(document).ready(function () {
        $('#reviewYear').change(function(){
        	jQuery.ajax({
                url:'<?=Util_JxUrls::ajax_action_url('GetKpMonth')?>',
                data:{'year':this.value},
                type:'post',
                success:function (data) {
                    var data = eval('(' + data + ')');
                    if(data.errcode){
                        var html = '';
                        for(var i=0;i<data.data.length;i++){
                        	html +='<option value="'+data.data[i].s_month+data.data[i].e_month+'">'+parseInt(data.data[i].s_s)+'-'+parseInt(data.data[i].e_s)+'月</option>';
                        }
                        $('#reviewMonth').html(html);
                        return;
                    }
                    return;

                }
            });
        });
    });
      function submitQuery(typeValue) {
    	  if(typeValue == 'y'){
    	      $("#reviewMonthIds").attr("disabled","disabled");
    	  }
    	  $('#teamHistory_ids').submit();
      }

      function queryOtherTeam(otherLeaderCode)
      {
      	$('#otherLeaderCode_id').val(otherLeaderCode);
    	$('#queryOtherTeamHistory_id').submit();
      }
    </script>

<?php $this->script_block_end(); ?>